from __future__ import with_statement

import transaction

from crv.config.environment import load_environment
from crv import model
from crv.model.crvmodel import *        
import time

from paste.deploy import appconfig
from pylons import config

conf = appconfig('config:development.ini', relative_to='.')
load_environment(conf.global_conf, conf.local_conf)


with NamedLock("hello"):
 for i in range(10):
  print i
  time.sleep(1)

